<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" errorPage="hello.jsp" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<title>登录在线考试系统</title>
<style>
a:link,a:visited{ text-decoration:none; color:#F97B44;  /*超链接无下划线*/}
a:hover{ text-decoration:underline; color:black; /*鼠标放上去有下划线*/} 
input, button { border:10;vertical-align:middle; margin:8px; line-height:18px; font-size:18px } 
/*.btns { width:143px; height:40px;} */
.btns{padding: .5em 2em .55em;text-shadow: 0 1px 1px rgba(0,0,0,.3); outline:none;height:45px; color:white; background:#DA4F49; font-size:20px; cursor:pointer; -moz-border-radius: 15px; -webkit-border-radius: 15px;border-radius:15px;}
.btns:hover{ background:#B03840;}
</style> 
</head>
	<body>
	<div><br/><br/><br/></div>
	<div  style="position:absolute;height:50;width:500px;border-radius:15px;background-color:#FFF5ED;margin-left: 25%;margin-right: auto;float:right;margin-top:10px;margin-bottom:20px;padding:0 10px;" >
	<br/>
	<br/>
	   <h2 align="center">欢迎登录在线考试系统</h2>
	   
		<font color="red"><s:actionerror/></font>
		<font color="red"><s:actionmessage /></font>
		
		<s:form action="login" namespace="" method="post" >
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			&nbsp;&nbsp;用户名：&nbsp;<input type="text" name="user.userID" value="Sxxxx或Txxxx" onfocus="javascript:if(this.value=='Sxxxx或Txxxx')this.value='';" ><br/><br/>
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			&nbsp;&nbsp;密 &nbsp;&nbsp; 码：&nbsp;<input type="password" name="user.password" >	<br/>	<br/>
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			身 &nbsp;&nbsp; 份：	&nbsp;&nbsp;&nbsp;&nbsp;
			<s:radio name="user.type" list="#{'T':'老师 ','S':' 学生'}"/><br/>	
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<input type="reset" class="btns" value="重置" />
			<input type="submit" class="btns" value="登录" />	<br/>	
		</s:form>
		
		<br/>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<s:a href="sign_directup.action">学生注册</s:a>
		<br/>
		<br/>
		
  </div>
	</body>
</html>